package com.strato.rpc.transport.http.v1_0_0;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.strato.mvc.api.v1_0_0.control.HttpInvoker;
import com.strato.mvc.api.v1_0_0.control.HttpInvokerInterceptor;
import com.strato.mvc.api.v1_0_0.control.PathVariableCollector;
import com.strato.mvc.api.v1_0_0.util.RequestMeta;

public abstract class RpcInvokerInterceptor implements HttpInvokerInterceptor {

	@Override
	public boolean canHandle(HttpServletRequest request, HttpServletResponse response, PathVariableCollector pvc,
			RequestMeta meta, HttpInvoker invoker) {
		return RpcInvoker.class.isInstance(invoker);
	}

}
